-- GENERATED SPELL FOR [Warsong Battleguard] --


function spell0_32510(pUnit, Event) --@Heroic Leap,n/a--
pUnit:FullCastSpellOnTarget(57793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32510', 0, 1)
end

function Sorts_32510(pUnit, Event)
local choix_sorts_32510 = math.random(0, 0)
if choix_sorts_32510 == 0 then
pUnit:RegisterEvent('spell0_32510', 1, 1)
end
end

function mob32510_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32510', math.random(1500, 3000), 1)
end

function mob32510_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32510_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32510_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32510, 1, 'mob32510_Action')
RegisterUnitEvent(32510, 2, 'mob32510_Leave')
RegisterUnitEvent(32510, 3, 'mob32510_Kill')
RegisterUnitEvent(32510, 4, 'mob32510_Die')
